import {forwardRef, useImperativeHandle} from "react";

export default forwardRef(
    (props, ref) =>
    {
    useImperativeHandle(ref, () => ({
        getData,
    }));
    const getData = () => {
        console.log('ref get param');
    };
    return (
        <>
            <h1>this is ref component</h1>
        </>
    )
}
)
